package com.ssh.action.petinfo;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionSupport;
import com.ssh.biz.IPetinfoBiz;
import com.ssh.entity.Petinfo;
@Controller
@Scope("prototype")
public class AddPetinfoAction extends ActionSupport{
	@Resource
	private IPetinfoBiz iPetinfoBiz;
	private Petinfo petinfo;
	
	
	public String execute(){
		iPetinfoBiz.savePet(petinfo);
		return "success";
	}
	
	
	public IPetinfoBiz getiPetinfoBiz() {
		return iPetinfoBiz;
	}
	public void setiPetinfoBiz(IPetinfoBiz iPetinfoBiz) {
		this.iPetinfoBiz = iPetinfoBiz;
	}
	public Petinfo getPetinfo() {
		return petinfo;
	}
	public void setPetinfo(Petinfo petinfo) {
		this.petinfo = petinfo;
	}
}
